-- GENERATED SPELL FOR [Muckrake] --


function spell0_2421(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(8379,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2421', 10278, 1)
end

function spell1_2421(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(12555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2421', 5330, 1)
end

function Sorts_2421(pUnit, Event)
local choix_sorts_2421 = math.random(0, 1)
if choix_sorts_2421 == 0 then
pUnit:RegisterEvent('spell0_2421', 1, 1)
end
if choix_sorts_2421 == 1 then
pUnit:RegisterEvent('spell1_2421', 1, 1)
end
end

function mob2421_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2421', math.random(1500, 3000), 1)
end

function mob2421_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2421_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2421_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2421, 1, 'mob2421_Action')
RegisterUnitEvent(2421, 2, 'mob2421_Leave')
RegisterUnitEvent(2421, 3, 'mob2421_Kill')
RegisterUnitEvent(2421, 4, 'mob2421_Die')
